package com.pearl.jacksoncore.demo.feature;

import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;

/**
 * @author TD
 * @version 1.0
 * @date 2024/4/1
 */
//@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id")
public  class Node {
    private String id;
    private Node next;

    public Node(String id) {
        this.id = id;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    // Getters and setters omitted for brevity

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Node getNext() {
        return next;
    }
}